package com.easyOrder.core.utils;

public class UriUtil {
	public static String getParameter(String uri, String name) {
		String prefix = name + "=";
		int start = uri.indexOf(prefix) + prefix.length();
		int end = uri.indexOf('&', start);
		if (-1 == end) {
			return uri.substring(start);
		}
		return uri.substring(start, end);
	}
}
